package cn.gemiman.daoyi.module.iot.controller.admin.equipmentmsg.vo;

import cn.hutool.json.JSONObject;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import jakarta.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 设备消息新增/修改 Request VO")
@Data
public class EquipmentMsgSaveReqVO {

    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "23232")
    private Long id;

    @Schema(description = "设备编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "23332")
    @NotNull(message = "设备编号不能为空")
    private Long equipmentId;

    @Schema(description = "设备名称")
    private String equipmentName;

    @Schema(description = "消息名称")
    private String msgName;

    @Schema(description = "消息键")
    private String msgKey;

    @Schema(description = "消息值")
    private String msgValue;

    @Schema(description = "报警状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "0")
    @NotNull(message = "报警状态不能为空")
    private Integer alarmStatus;

    @Schema(description = "消息时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "消息时间不能为空")
    private LocalDateTime msgTime;

    private JSONObject msgJson;
}
